﻿<UserControl x:Class="Chapters.Chapter16.NotifySourceTargetExample"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:Chapter16="clr-namespace:FSharp.Chapter16;assembly=FSharpLibrary"
			 TargetUpdated="OnItemsSourceChanged">
	<UserControl.Resources>
		<Chapter16:AddressBook x:Key="DataSource" />
	</UserControl.Resources>
	<Grid>
		<ListBox x:Name="ContactsList"
				 ItemsSource="{Binding ContactNames, Source={StaticResource DataSource}, NotifyOnTargetUpdated=True}" />
	</Grid>
</UserControl>
